package com.dily.study.spring;

import com.dily.study.spring.entity.A;
import com.dily.study.spring.entity.B;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Date: 2022-07-06 星期三
 * Time: 15:25
 * Author: Dily_Su
 * Remark:
 */
public class TestMain {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("META-INF/AB.xml");
        A a = context.getBean(A.class);
        System.out.println(a.getB());
        B b = context.getBean(B.class);
        System.out.println(b.getA());
    }
}
